package players;

public class TitularPlayer {
    private FutbolPlayer player;

    private Position position;

    private Integer id;

    // *******************//
    // *** Constructor ***//
    // *******************//
    public TitularPlayer(final FutbolPlayer aFutbolPlayer, final Position aPosition) {
        this.player = aFutbolPlayer;
        this.position = aPosition;
    }

    // Constructor Vacio para el hibernate.
    protected TitularPlayer() {

    }

    // ***************************//
    // *** Getters and Setters ***//
    // ***************************//
    public FutbolPlayer getPlayer() {
        return this.player;
    }

    public void setPlayer(final FutbolPlayer player) {
        this.player = player;
    }

    public Position getPosition() {
        return this.position;
    }

    public void setPosition(final Position position) {
        this.position = position;
    }

    public Integer getId() {
        return this.id;
    }

    public void setId(final Integer id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return this.player.getName();
    }
}
